<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目管理</title>
</head>
<lui:context/>
<u:View basePath="/res-datum/development" userJS="devProject" delayLoadJs="false">
<body>
<lui:boards>
	<lui:board width="100%" boardTitle="项目管理">
		<form id="devProjectFrm">
			<div class="form-group row m-narrow">
			    <div class="col-sm-3 col-md-3">
			        <div class="input-group">
						<label for="cnProjectName" class="input-group-addon">项目中文名</label>
						<input name="cnProjectName" id="cnProjectName" type="text" class="form-control">
					</div>
			    </div>
			    <div class="col-sm-3 col-md-3">
			        <div class="input-group">
						<label for="enProjectName" class="input-group-addon">项目英文名</label>
						<input name="enProjectName" id="enProjectName" type="text" class="form-control">
					</div>
			    </div>
			    <div class="col-sm-3 col-md-3">
			        <div class="input-group">
						<label for="creatorId" class="input-group-addon">创建者账号</label>
						<input name="creatorId" id="creatorId" type="text" class="form-control">
					</div>
			    </div>
			    <div class="col-sm-3 col-md-3">
			        <div class="input-group">
						<label for="creatorName" class="input-group-addon">创建者姓名</label>
						<input name="creatorName" id="creatorName" type="text" class="form-control">
					</div>
			    </div>
			</div>
			<div class="form-horizontal">
			    <div class="col-sm-6 col-md-6">
			    	<div class="form-group m-narrow">
			    		<div class="btn-group" id="buttonGro">
						    <button class="btn btn-default m-btn" type="reset">重置</button>
						    <button class="btn btn-success m-btn" type="button" onclick="DevProjectPage.add()">新增</button>
						    <button class="btn btn-primary m-btn" type="button" onclick="DevProjectPage.findByCondition()">查询</button>
					    </div>
					</div>
			    </div>
			</div>
			<u:dropListView id="dropView_oper">
				<u:dropView name="export" template="export" onClick="DevProjectPage.export" title="导出表"/>
			    <u:dropView name="update" template="edit" onClick="DevProjectPage.update" title="修改"/>
			    <u:dropView name="delete" template="delete" onClick="DevProjectPage.delete" title="删除"/>
			</u:dropListView>
			<u:dataSet id="devProjSet" idField="id">
			    <u:dataField display="ID" name="id" visiable="false" sort="false"/>
			    <u:dataField display="中文名" name="cnProjectName" align="center"/>
				<u:dataField display="英文名" name="enProjectName" align="center"/>
				<u:dataField display="创建者账号" name="creatorId" align="center"/>
				<u:dataField display="创建者" name="creatorName" align="center"/>
				<u:dataField display="创建时间" name="createTime" align="center"/>
				<u:dataField display="包路径" name="packagePath" align="center"/>
				<u:dataField display="注释" name="comment" align="left"/>
				<u:dataField display="数据库" name="db" align="center"/>
				<u:dataField name="oper" dropView="dropView_oper" display="操作"/>
			</u:dataSet>
			<!-- 获取用户信息列表ajax -->
			<lui:ajax id="findDevProjAjax" url="${ctx }/datum/devProj/find/page" formQuery="#devProjectFrm"/>
			<lui:ajax id="deleteByIdAjax" url="${ctx }/datum/devProj/delete/id/" onSuccess="DevProjectPage.deleteSucc"/>
			<lui:datatable id="datatable" ajax="findDevProjAjax" sortable="true" pagination="pagination" dataset="devProjSet" checkable="true"
			    multiple="false" cutLine="true"/>
			<lui:pagination datatable="datatable" id="pagination" pageSize="15" pageChoice="15" showPageChoice="false"/>
		</form>
	</lui:board>
</lui:boards>
</body>
</u:View>
</html>